package com.cloud.wms.ui.inside.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by FC on 2021/5/17.
 * Desc：
 */
public class TransferCommodityEntity implements Parcelable {
    private String commodityID;
    private String commodityName;
    private long posID;
    private String posCode;
    private String barCode;
    private int stockType;
    private String productBatchID;
    private String productionDate;
    private String expirationDate;
    private String inDate;
    private int amount;
    private String memberName;
    private String memberID;
    private String containerID;

    public TransferCommodityEntity() {

    }

    public String getContainerID() {
        return containerID;
    }

    public void setContainerID(String containerID) {
        this.containerID = containerID;
    }

    public String getMemberID() {
        return memberID;
    }

    public void setMemberID(String memberID) {
        this.memberID = memberID;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public long getPosID() {
        return posID;
    }

    public void setPosID(long posID) {
        this.posID = posID;
    }

    public String getPosCode() {
        return posCode;
    }

    public void setPosCode(String posCode) {
        this.posCode = posCode;
    }

    public String getProductBatchID() {
        return productBatchID;
    }

    public void setProductBatchID(String productBatchID) {
        this.productBatchID = productBatchID;
    }

    public String getCommodityID() {
        return commodityID;
    }

    public void setCommodityID(String commodityID) {
        this.commodityID = commodityID;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public int getStockType() {
        return stockType;
    }

    public void setStockType(int stockType) {
        this.stockType = stockType;
    }

    public String getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(String productionDate) {
        this.productionDate = productionDate;
    }

    public String getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(String expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String getInDate() {
        return inDate;
    }

    public void setInDate(String inDate) {
        this.inDate = inDate;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.commodityID);
        dest.writeString(this.commodityName);
        dest.writeLong(this.posID);
        dest.writeString(this.posCode);
        dest.writeString(this.barCode);
        dest.writeInt(this.stockType);
        dest.writeString(this.productBatchID);
        dest.writeString(this.productionDate);
        dest.writeString(this.expirationDate);
        dest.writeString(this.inDate);
        dest.writeInt(this.amount);
        dest.writeString(this.memberName);
        dest.writeString(this.memberID);
        dest.writeString(this.containerID);
    }

    protected TransferCommodityEntity(Parcel in) {
        this.commodityID = in.readString();
        this.commodityName = in.readString();
        this.posID = in.readLong();
        this.posCode = in.readString();
        this.barCode = in.readString();
        this.stockType = in.readInt();
        this.productBatchID = in.readString();
        this.productionDate = in.readString();
        this.expirationDate = in.readString();
        this.inDate = in.readString();
        this.amount = in.readInt();
        this.memberName = in.readString();
        this.memberID = in.readString();
        this.containerID = in.readString();
    }

    public static final Creator<TransferCommodityEntity> CREATOR = new Creator<TransferCommodityEntity>() {
        @Override
        public TransferCommodityEntity createFromParcel(Parcel source) {
            return new TransferCommodityEntity(source);
        }

        @Override
        public TransferCommodityEntity[] newArray(int size) {
            return new TransferCommodityEntity[size];
        }
    };
}
